doctype html
html
  head

    title

    meta(http-equiv="Content-Type", content="text/html; charset=utf-8")
    meta(name="viewport", content="width=320, target-densitydpi=device-dpi")

    style(type='text/css').
      body { margin: 0; padding: 0 }
      body, * { font-family: "Helvetica Neue", Arial, Helvetica, sans-serif; -webkit-text-size-adjust: 90% }
      @media (max-width: 800px) {
        #background { background: #fff !important; padding: 0 !important }
      }
      pre { font-size: 12px; line-height: 18px; overflow: auto; white-space: pre; }
      code, pre, code *, pre * { font-family: Menlo, Monaco, Consolas, "Courier New", monospace; }

  body(style="margin: 0; padding: 0")
    div#background(style="background: #eee; padding: 20px")
      div(style="background: #fff; padding: 20px; width: 540px; max-width: 100%; color: #444; border-radius: 5px; margin: 0 auto")

        //- Header
        div(style="padding-bottom: 20px")
          div(style="border-top: 10px solid #{ color }; padding: 20px; background: #eee; border-radius: 4px; text-align: center")
            h1(style="font-weight: normal; margin: 0 0 12px; line-height: 1.3") #{ requestId }
            h2(style="font-weight: normal; margin: 0 0 21px; line-height: 1") #{ emailType } notifications are being rate limited 
            if singularityRequestLink
              a(style="background: #08c; color: #fff; padding: 10px 20px; display: inline-block; text-decoration: none; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; border-radius: 3px", href="#{ singularityRequestLink }") View request

        div(style="padding-bottom: 20px")
          div(style="padding-bottom: 12px; margin: 15px 0; border-bottom: 1px solid #eee")
            h3(style="margin: 0; font-size: 20px; line-height: 1") Status
          p #{ requestId } has sent at least #{ rateLimitAfterNotifications } #{ emailType } notifications within #{ rateLimitPeriodFormat }
            ul
              li You will not receive any #{ emailType } mails for #{ requestId } for the next #{ rateLimitCooldownFormat } 
